package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.entity.system.SysRoleUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【sys_user_role(用户角色)】的数据库操作Mapper
* @createDate 2024-09-01 20:41:12
* @Entity com.zhentao.pojo.SysUserRole
*/
public interface SysUserRoleMapper extends BaseMapper<SysRoleUser> {

    List<Long> findSysUserRoleByUserId(Long userId);

    void doAssign(@Param("userId") Long userId,@Param("roleId") Long roleId);// 添加关联关系
}




